(function(layui) {
  'use strict';

  var MODULE_NAME = 'setter';

  layui && layui.define(['jquery', 'util'], function(exports) {
    console.log('[layuiadmin] dir: "' + layui.cache.base + '"');

    exports(MODULE_NAME, {
      el         : '#layApp',
      base       : layui.cache.base,
      views      : layui.cache.base + '../views/tpl/',
      engine     : '.html',
      entry      : 'index',
      pagetabs   : true,
      debug      : true,
      storageName: 'layAdmin',
      // code from layuiAdmin
      request    : {
        tokenName: false
      },
      response: {
        statusName: 'code',
        statusCode: {
          ok    : 200,
          logout: 1001
        },
        msgName : 'msg',
        dataName: 'data'
      },
      theme: 'default'
    });
  });
})(layui);
